package com.huawei.appgallery.search.ui.card;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.search.ui.cardbean.ContentNormalCardBean;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import o.azb;
import o.chy;
import o.cuv.b;
import o.cuv.e;
import o.cuv.f;
import o.dge.d;
import o.dgh;
import o.ContentManager;
import o.evx;

public class ContentNormalCard extends BaseCompositeCard {
    public ContentNormalCard(Context context) {
        super(context);
    }

    public View ˎ() {
        View inflate = LayoutInflater.from(this.ʼॱ).inflate(e.ᐝ, null);
        azb.ˏ(inflate, b.ᐝˊ);
        return inflate;
    }

    public BaseCompositeItemCard ˋ() {
        return new CententNormalItemCard(this.ʼॱ);
    }

    public void ॱ(final chy o_chy) {
        this.ॱ = o_chy;
        View ʽ = ʽ();
        if (ʽ != null) {
            ʽ.setOnClickListener(new evx(this) {
                final /* synthetic */ ContentNormalCard ˎ;

                public void ˋ(View view) {
                    if (o_chy != null) {
                        CardBean ˌ = this.ˎ.ˌ();
                        if (ˌ instanceof ContentNormalCardBean) {
                            o_chy.ˏ(0, this.ˎ);
                            int ʽ = ((ContentNormalCardBean) ˌ).ʽ();
                            String ꓸ = ((ContentNormalCardBean) ˌ).ꓸ();
                            dgh.onEvent(new d(ContentManager.getInstant().getContext(), f.ˎ).ˏ(ʽ + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + ꓸ).ˋ());
                        }
                    }
                }
            });
        }
    }
}
